package drg_group.taizhou_2022.MDC;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;

import drg_group.taizhou_2022.Base;
import drg_group.taizhou_2022.MedicalRecord;
import drg_group.taizhou_2022.ADRG.*;

public class MDCG{
    public static String group(MedicalRecord record){
        String[] mdc_zd={"C15.100x004","D12.600","K59.401","K58.800","Q39.800x903","S36.401","C26.800x002","K40.202","S36.511","K66.800","Q40.206","K65.803","A18.812+K93.8*","C16.801","K90.200x001","K31.806","K59.200x003","D20.102","S36.812","Q43.805","K62.804","C18.600","K52.201","C16.800x003","Q40.208","E11.400x350+G99.0*","Q42.902","K55.012","R19.500x003","K55.001","K62.814","K66.800x008","A09.003","K40.900x003","K43.604","C15.100","Q43.300x901","K65.802","K28.600","C16.900","K29.800","R19.100x002","K62.401","C45.700x002","D37.900x001","D20.100","I86.812","R10.301","A03.200x001","K28.000","C16.802","C78.600x004","K58.200","A18.310","D17.702","K31.601","E14.400x330+G99.0*","K91.800x412","R19.500x004","A09.004","D12.000","K29.604","C20.x00x003","K66.807","K91.834","C78.602","C17.100","K22.203","K91.305","A09.000x003","A18.317","K22.802","D37.201","K46.900x012","K90.100x002","D17.500x008","K22.500","K59.000","K26.200x001","Q41.101","T18.400","K56.601","C78.501","K22.300","Q43.602","K66.102","D12.603","K40.906","D37.205","K26.100","K29.700","K62.822","A05.300","K40.306","R12.x00x002","K52.204","Q40.204","K46.900x004","K65.800x001","K63.900x002","K25.000x002","Q43.003","A05.400","K31.814","A08.000","K31.104","K31.602","K27.400x004","R93.300x004","K29.300","K91.800x602","K52.909","C77.207","K55.000","K56.200x011","C18.801","K22.000x002","K27.900x001","Q40.003","C21.100","C15.800x004","K22.901","K64.400","K20.x00","R19.200","D12.302","R10.102","K22.101","K52.202","Q41.003","A03.904","K40.309","K26.500x001","K31.811","Q43.004","I72.816","K62.800x001","K51.301","E10.400x340+G99.0*","K45.806","K56.604","K90.801","C16.600","K56.400x001","A04.500","K62.300","C21.801","K22.601","K55.007","A04.800x006","I77.400","K26.300","K59.303","C78.800x010","K43.605","K59.301","Q40.203","K52.803","D37.710","S36.910","K37.x00x002","K40.300","K63.216","K22.803","K64.811","C17.900x002","K63.500","K65.011","K43.700","D17.700x027","K40.900x004","Q43.807","I72.800x063","K58.100","K62.805","A04.803","R19.400","T18.501","K57.400","K60.400","K92.000","K25.000x001","K40.905","K66.803","K46.900x002","K60.500","K90.402","C18.900x001","D37.203","A04.200x001","K37.x00","K31.000","K42.100x001","K56.102","K90.002","K52.804","Q45.900","K61.100","K21.900x003","K46.901","Q43.104","K50.103","Q40.207","A04.700","Q43.106","K31.818","K65.901","E14.400x340+G99.0*","S36.803","K28.901","K43.602","K40.000x001","K60.401","C16.100","K55.200x013","C15.900","Q43.800x017","Q42.800x003","Q40.800","K63.801","D37.400x002","D48.400x002","K55.002","K62.400x004","A08.401","K22.209","D37.501","S36.814","T28.700x002","A09.901","K63.809","K31.813","K27.500x005","K91.102","K29.900","C18.803","K29.501","K43.301","K63.504","D12.300","D13.000","A09.007","Q40.201","K56.001","Q79.200","K31.821","D17.500","K31.904","K41.400x001","K22.800x011","K31.702","K91.833","A07.300","K22.804","C78.804","Q42.000x201","K44.000x001","K22.800x003","K90.900x002","K43.500","S36.611","A04.901","D37.100x003","D12.000x002","K51.302","Q89.302","A05.202","A05.300x001","K63.901","A08.402","K65.005","B37.805","D17.700x022","K22.201","K45.807","K40.101","Q40.205","K22.202","A05.000","K63.500x084","R19.501","K40.900x001","A18.303+K93.0*","A18.318","Q42.201","K25.500x001","K26.501","K57.003","K22.805","C77.201","K52.904","K90.404","K26.400x003","K61.101","Q40.200x004","K63.900x001","K40.401","K52.907","D48.403","R85.300","K66.806","A18.308","K64.401","K26.600","K55.100x008","K63.806","A04.700x002","K55.101","C78.400","K91.837","Q45.300x104","C78.500x006","K27.600x001","Q42.102","K62.001","B37.806","E16.402","C16.804","D17.500x005","K31.600x005","Q41.002","C15.900x003","K56.202","I86.800x022","Q39.100x021","K91.804","K43.303","A03.902","C48.201","K91.101","T28.100","K61.002","K40.400x001","K66.003","K57.101","K56.300","A09.900x004","R10.000x004","C76.304","R10.400x004","K29.000","K40.301","K62.818","R85.800","K62.202","K63.301","K91.819","A04.801","T18.500x004","T18.801","K31.820","K65.805","B37.804","K66.811","K59.100","S30.102","K28.500","K31.802","K62.601","C15.400","K56.600x005","D18.000x838","R85.500","K92.800x005","K43.004","C15.800x001","K55.000x015","K63.308","I86.400x002","K31.100x002","K46.902","K57.103","K91.813","K44.901","K92.209","K63.814","A07.200","K22.206","K91.800x106","D36.901","K43.000","D48.401","S36.801","K59.002","K31.819","K38.100","K50.801","K55.008","D13.900","K63.812","K62.100","K63.202","S36.400x095","K62.800x009","K60.303","K45.002","K91.800x103","K91.103","Q85.906","K91.839","K29.601","K46.900x003","K22.900x001","D37.403","A03.100x001","K52.800x003","D37.100x002","S39.909","A18.309","K66.006","T18.900","K60.300","Q42.200x903","K63.303","K56.100","K63.900x003","K64.810","C45.101","S36.601","C76.200","A09.900x006","K29.701","A18.300x013+K93.0*","K31.901","K66.810","K52.910","Q43.000","K52.801","C20.x01","K62.810","A05.100","K50.104","C78.801","D37.300x001","D36.700x019","C16.000","D48.402","K66.000x007","K91.824","K27.400","Q42.903","C17.900","K25.600","K57.100x005","E11.400x330+G99.0*","C26.900","K91.405","K57.105","K38.000","K57.302","K21.902","K41.300x002","Q42.800x002","R10.402","D18.000x825","C78.502","K25.401","K51.200x001","K63.502","S36.413","C15.200","K52.001","T28.701","A04.000x002","K63.213","C26.901","D36.700x018","Q43.801","Q43.200x003","K40.315","K65.006","K28.500x001","K91.830","S36.301","K62.200x001","S11.202","K40.305","C15.801","D01.100","K64.801","Q42.803","K63.307","K25.400x001","Q79.501","K63.200x008","Q39.000x001","K40.302","A04.802","K38.801","K65.900","K22.401","K31.100","K91.900","K29.600x006","C79.809","K40.002","K56.200x003","Q45.300x103","C16.800x002","D00.100","K27.501","Q85.900x002","C16.200","K55.009","K63.201","K22.700x001","Q42.000x101","K63.212","I86.800x014","C18.300","K90.901","A00.100x001","K62.400x003","S36.501","K40.311","K44.900x001","R85.100","K91.302","S36.500","K57.102","K31.200","T98.300x001","K31.603","D37.901","C16.402","K63.105","T28.200x002","C78.601","B49.x17","D37.408","K62.801","A05.800","C26.800","K58.300","C78.500x004","A07.801","C45.102","Q43.001","Q39.800x904","Q41.001","C77.200x001","K57.305","K51.002","R14.x00x003","K46.000","D17.500x004","K65.015","K51.900","E73.800","K65.017","A07.800x002","K90.802+M14.8*","D18.000x040","I72.800x131","K91.800x601","B82.901","K50.001","C18.400","A00.900","D37.708","D12.400","K56.501","K56.700x003","K62.402","K66.007","K40.001","K65.906","K38.900","K92.207","Q39.400","A00.900x004","C48.200","K45.000","K64.900","K59.302","K52.912","K44.100x001","Q43.806","K22.400x003","K91.800x206","A04.800x007","A00.000x001","J11.800x002","C78.403","K91.202","K51.201","A09.900x007","D17.700x017","K65.004","R19.300","K38.000x002","D37.402","K91.828","K55.104","A08.300","K55.100x006","A04.400x004","K63.306","K92.204","K65.804","Q43.811","K26.200x002","K46.905","I85.901","D37.202","K31.809","T18.300x003","D01.300x001","C45.703","K56.602","K57.900x001","C19.x01","K63.108","Q43.804","K22.200","K62.819","D37.400x001","K43.302","Q43.900","K63.204","Q43.809","D12.100","T28.200x001","Q43.105","S36.310","K92.901","A18.306+K93.0*","E11.400x340+G99.0*","Q79.400","K22.807","C15.300","K65.903","Q41.201","K25.902","K52.919","D12.800","K31.605","K91.818","A49.809","K63.206","C16.900x003","K65.016","Q42.200x902","K26.401","A00.900x002","D37.500x002","K40.314","Q39.501","K31.807","Q42.802","K63.102","K38.800x004","K56.500x003","K91.816","K52.200x004","Q39.802","Q43.300x201","C26.000","K62.201","B87.800x002+K93.8*","K66.812","K55.106","T18.300","K40.308","K45.804","D00.200","K66.002","K91.832","K31.400","K27.000","K40.100x001","A08.301","K91.404","B49.x16","K51.901","K91.829","K63.101","K56.701","K66.101","Q39.800x905","A03.900x007","K38.200","Q43.101","K43.601","C16.002","K31.800x808","Q51.702","R14.x00x006","K57.202","A09.001","E73.000","K62.800x012","Q42.200x905","K40.312","Q40.200x005","K60.301","C16.000x003","S36.800x022","Q43.700","S36.403","Q42.202","A04.600","K52.000","K22.806","Q42.200x901","A04.701","K64.901","D01.403","K91.820","D12.602","A18.304+K93.0*","K40.900x006","K65.800x002","K35.200","K91.406","A18.302+K93.0*","K20.x00x001","K41.300x003","C21.200","K42.000x001","R10.401","K64.100","Q42.200x904","A09.006","A07.000","D37.607","K62.902","I72.807","K55.013","K92.202","K59.400","T80.200x001","K63.211","C15.500","K55.004","K52.902","A08.400","K25.000","K92.200x005","K63.203","K35.201","I89.005","C78.800x005","K65.013","K51.903","Q41.203","K64.806","D01.900","K62.600x002","K62.800x021","A04.800x001","C77.106","K43.002","K50.000x005","B37.800x091","D36.700x014","D01.301","K43.003","K65.902","K35.800x001","K35.301","C78.803","C48.100","K40.304","A07.300x002","C45.705","I72.801","B46.200x001+K93.8*","K63.818","K91.800x007","S36.500x041","T18.301","K40.200x001","C26.800x001","Q43.601","Q42.301","K25.900x001","K65.801","A04.702","K50.000x001","K55.010","C78.402","S36.404","R15.x00","K46.100","K59.400x002","D18.000x045","C78.800x014","K45.100","Q89.301","K91.835","M32.112+K93.8*","K29.100x001","K41.000","K40.102","K64.501","K62.602","A03.300x001","C16.803","K56.600x001","K59.800x005","K62.816","K65.904","K46.101","K46.100x001","D37.200x002","B77.001+K93.8*","K63.401","D01.404","C15.802","D01.405","K35.300","K92.100x001","D37.103","K31.103","K63.819","A03.800x001","K63.209","R19.800x001","K65.807","K91.815","K25.001","A18.305+K93.0*","C77.208","I85.900x001","S36.402","K43.400","D37.204","K25.501","A08.400x003","D37.404","K63.403","K20.x00x006","K66.001","M32.115+K67.8*","K62.820","A05.200","K31.701","R14.x00x002","R93.500x001","K56.400x003","K62.809","Q79.500","K91.808","K62.700","K59.801","K21.001","K57.108","K40.310","K60.400x003","C16.500","Q85.900x036","C16.902","K57.000","K63.816","Q39.600","Q42.302","K62.817","K41.900x001","Q43.800x015","K25.100x001","S36.901","K63.304","K27.400x002","I89.801","K45.802","C18.000","A18.300x015+K93.0*","K52.102","K64.803","E16.401","K66.901","C18.802","Q43.402","K31.502","K57.401","K63.305","K63.902","K31.805","K65.000x014","K52.101","K29.600x007","K63.503","K64.500","A18.307+K93.0*","C16.903","K30.x00","K43.001","D12.200","K63.817","C21.101","K59.101","K91.800x116","K59.900x001","K59.900x002","Q79.201","I89.800x006","A18.315+K93.0*","R58.x01","K20.x02","K66.008","K91.811","K66.801","K22.811","A03.800x002","K57.800x001","A07.900x001","K91.300","T18.100","K91.201","D18.012","D37.200x004","Q40.002","Q43.200x002","K26.701","A04.900","A03.900x005","D48.700x005","S36.500x031","R10.000","K40.907","E10.400x330+G99.0*","K63.210","R14.x00x007","K40.307","A04.300x001","K27.500x002","A54.807+K67.1*","K31.808","D37.500x001","K66.103","Q85.913","S36.412","R14.x00x001","D37.410","D37.503","D37.407","K22.815","K55.006","K60.000","K51.800x001","S36.813","K31.810","C48.000","C21.802","D13.301","K27.502","K55.901","S36.701","K62.808","D12.901","Q41.202","Q43.200","K63.208","C21.000","K20.x03","K26.001","K31.600x004","K56.203","D37.406","I85.000x001","A18.314+K67.3*","C78.802","K36.x02","K66.004","E73.900","Q43.002","C18.800x002","K22.103","K27.503","K31.800x806","E84.102","A05.200x002","I72.802","I89.803","K22.813","Q39.801","K29.608","K29.700x002","K51.300","K59.200x002","S36.411","R10.400x002","Q39.601","D37.700x001","Q43.800x019","D37.709","B82.000","K25.300x001","Q39.300","Q45.300x105","K90.401","K41.200x001","Q44.500x008","K63.205","K64.809","K31.816","K66.000","K27.500","K27.600","R12.x00","D18.000x043","C18.901","K92.210","Q40.900","A03.900x002","Q43.800x018","A00.900x003","D13.101","K27.100x001","I88.000x003","D37.405","A03.900x009","K29.101","S36.600x003","K31.903","K41.302","K60.100","K90.406","Q45.300x102","S36.400x091","K60.200","K62.803","K91.800x501","C18.200","Q43.100","Q40.300","K52.901","A09.900x003","K31.905","D37.200x001","D17.500x007","K50.000","K63.501","K51.202","K62.200","K90.400x003","K62.800x010","D37.401","K29.400","C15.100x003","Q40.200x010","K57.106","K91.100","K92.206","K38.802","K91.821","K27.901","K91.812","K90.001","Q39.800x201","D13.900x003","K55.105","K22.205","A03.000x001","Q42.101","K65.008","K52.908","D13.303","K52.802","K90.405","A00.900x005","K63.000","Q43.901","Q27.810","K40.303","C48.103","C78.505","K63.200x003","Q43.301","R19.200x002","K63.805","C78.800x013","D20.000","K29.603","K29.801","K55.800x004","K62.807","K50.102","K52.300","Q42.002","D13.200","Q43.802","K91.303","K31.800x801","E85.417+K93.8*","C15.000","D37.206","K52.911","K43.900","K43.304","K62.815","K64.802","K31.801","S36.500x093","K38.800x001","K43.900x001","K58.801","D48.129","R93.300x001","K27.401","K22.204","Q43.403","R93.300x003","K63.215","K57.301","K51.000","Q43.810","Q41.103","K91.100x001","K56.000","K57.104","D48.121","K46.903","K63.001","K52.000x001","K41.100x001","K61.400","Q85.902","K31.607","C26.800x003","Q39.100","K57.303","A09.000x006","I88.105","K40.901","K27.900x005","D20.101","K29.802","S36.400","D18.100x001","D37.700x007","K50.800","B77.000x001+K93.8*","K62.500x001","K51.003","K57.300x006","K65.009","K45.003","D00.200x002","K91.408","K26.900x001","K66.200","C18.001","K38.300","K65.000","D00.200x003","Q41.800","C78.603","K57.304","K65.012","Q43.812","K63.302","C18.900","K62.800x005","A18.807+K23.0*","C20.x00","K30.x00x001","R19.500x002","A04.401","D37.409","K62.821","C16.000x004","K57.800","Q39.900","Q40.000","K38.800x003","S36.802","D48.301","D18.000x041","K65.905","Q40.202","Q41.104","D12.900x001","K51.500","K28.401","K22.812","S36.700","K55.900","K63.804","A18.300x009+K93.0*","K25.700","Q43.401","K90.400","K40.900x002","K91.836","K62.802","C16.400","Q39.200x011","K62.301","K62.100x002","B49.x00x002","K55.202","K63.900x005","A03.903","K92.800x003","K55.000x010","K46.900","D12.301","K55.102","S36.414","K45.805","Q39.100x011","K28.300x001","A05.900","K43.200","K40.313","A74.801+K67.0*","K31.703","K91.809","K56.603","D37.301","Q39.803","K59.200","C16.800","K57.500","K91.200x002","K64.807","Q43.800x012","R85.200","A18.316+K93.0*","A09.002","K61.001","K91.805","A18.300x016","K36.x00x004","K64.200","D37.101","D13.302","K63.400","K60.302","K27.500x001","K43.902","Q43.404","S36.405","S39.905","D48.713","K45.801","C17.000","D12.500","D17.500x003","K31.609","K91.801","K22.100","Q41.901","C17.801","S36.500x011","R10.101","K31.815","Q41.903","K44.000x002","Q79.300","K63.214","D48.300x001","K40.902","A09.902","D48.714","K28.600x001","K51.400","D17.500x009","Q43.800x014","D12.001","K42.902","A18.300x006+K67.3*","C15.800x003","K65.010","C78.500x008","K22.400","K92.201","K46.001","K66.802","A03.900x008","D48.400x003","K91.814","K31.604","K25.901","K63.807","E16.400","K59.003","K55.201","D37.701","K28.700","D18.000x046","R85.000","C48.104","C78.809","C48.105","C48.800","K66.808","K91.800x702","S36.400x093","K91.831","K21.901","R85.600","K45.808","K92.208","K22.600x001","C16.301","K64.805","C15.100x002","K91.402","M34.800x006+K23.8*","T18.502","A03.900","E10.400x350+G99.0*","K41.301","K36.x00x003","K92.200x001","D01.000","K63.200","K65.001","K40.402","K55.000x011","S36.500x021","D37.207","I78.802","K29.605","K51.203","T28.600","R10.103","K55.000x005","K91.817","A08.200","K50.002","D48.117","K43.603","D18.000x859","K57.002","K29.602","D09.700x002","K51.401","K31.101","K65.806","K56.101","T18.200","D48.700x004","A18.800x014+K23.0*","K55.100x005","K22.102","D13.100","K21.903","S36.300","K31.102","D12.700","K92.800x002","C17.300","K55.103","K46.002","D18.000x801","K90.200","K63.104","D01.402","K40.204","K63.802","K63.803","K63.103","D37.700x002","K22.000x001","K92.800x011","K26.000","K42.001","R19.000x005","K22.808","K28.400x002","Q42.000x501","K63.402","K65.002","Q42.801","A09.903","K56.200","K59.800x002","K55.200","S36.811","R85.700","K92.205","I86.400x004","Q39.602","K90.100x001","K29.606","K28.100","K63.815","R19.100","K62.501","D37.707","K50.800x001","Q45.801","E10.400x370+G99.0*","K31.800x802","K90.100x003","K66.201","C18.500","K57.801","A60.102+K93.8*","K31.501","K52.917","R85.400","T28.702","D37.200x003","K50.101","K29.500","K57.900","K45.800","Q89.300","E11.406+G99.0*","D36.707","C19.x00","A08.100x001","K25.400x002","K36.x01","K52.914","C45.700x005","C15.800x002","B66.501","A05.000x001","A18.311+K93.0*","K27.900x002","K64.300","K63.107","K50.900","K31.804","C18.700","K62.000","Q43.103","K62.812","D13.304","K29.600","K42.901","D17.701","Q43.800x009","K55.801","I72.815","K52.203","K43.100","S36.810","C78.503","K28.900x001","K31.606","K57.107","K66.809","K20.x01","K28.900x002","K52.104","K55.005","D37.411","K22.207","K60.403","I72.800x142","K31.500","K55.011","I72.800x132","K22.208","K62.300x003","K91.803","A08.101","K91.401","K90.000x001","Q42.000x401","D19.100","K90.403","K92.800x007","A09.000x001","K52.103","D36.708","K62.901","K31.300","A18.300x014+K93.0*","K91.000","I86.400","K64.402","K92.800x004","Q40.209","Q43.808","K92.800x001","K25.200x001","K55.003","K42.900","K40.201","D01.200","A09.904","Q43.500","D37.502","K52.918","K91.800x102","K62.811","K56.401","K91.810","K61.200","K64.000","K65.003","Q41.902","K31.803","D12.601","K27.300","Q42.001","K22.801","I86.400x001","K22.809","A04.600x001","A05.400x001","Q41.102","K61.300","K90.000","S36.900","K91.802","K52.903","C17.800","I88.001","I89.800x019","E16.400x003","K51.902","K56.600x008","S36.500x091","K55.100","K55.902","C16.001","K31.812","K20.x00x003","K56.201","Q43.102","A03.901","K56.503","K92.203","C17.200","K61.000","K29.200","D37.100x001","S36.500x092","K51.303","K62.903","C21.800","S36.600","D37.102","I74.800x011","K29.001","Q40.100","K55.100x001","C16.401","K57.200x001","C78.504","K27.200","Q42.000x301","Q43.800x008","I86.401","A52.710+K67.2*","Q43.800x006","D18.000x042","Q42.901","K40.900x005","K62.800x017","K62.806","K46.000x002","Q43.201","I89.006","K22.814","K66.805","D37.702","C78.401","E14.400x370+G99.0*","A18.312+K93.0*","R19.600","Q79.301","K64.804","K40.904","K62.400x002","K40.903","Q43.803","K55.300","K55.300x001","K27.902","K27.700x001","C79.800x834","K22.301","C45.100","K57.201","K26.900x002","Q89.300x001","C18.100","K55.800x003","A04.800x003","A09.005","K55.900x004","K90.300x001","K63.810","D13.902","R93.303","D01.401","K66.800x009","E14.400x350+G99.0*","B82.900","A04.100x001","K63.207","K63.813","K62.813","R19.100x001","K51.001","K91.800x111","K66.005","K91.300x002","B49.x12","K40.203","K65.014","D37.606","K63.500x002","A07.100","A04.800x010","K60.402","D17.500x001","A04.902","K28.200","A08.500","K64.808","K63.100x001","K91.301","K31.902","K25.903","K91.800x117","K91.842","A18.313+K93.0*","K57.001","K27.400x001","K56.700","K66.100","K31.608"};
        String[] dept_list={};
        if (!(true && Base.contains(mdc_zd,record.zdList[0]))){
            return "";
        }
        
        Base.groupMessages.putMessage(record.Index,"符合MDCG入组条件，匹配规则：主诊断匹配");
        String result;

        result=GB1.group(record);
        if (result.length()>0){
            return result;
        }

        result=GB2.group(record);
        if (result.length()>0){
            return result;
        }

        result=GC1.group(record);
        if (result.length()>0){
            return result;
        }

        result=GC2.group(record);
        if (result.length()>0){
            return result;
        }

        result=GD1.group(record);
        if (result.length()>0){
            return result;
        }

        result=GD2.group(record);
        if (result.length()>0){
            return result;
        }

        result=GE1.group(record);
        if (result.length()>0){
            return result;
        }

        result=GE2.group(record);
        if (result.length()>0){
            return result;
        }

        result=GF1.group(record);
        if (result.length()>0){
            return result;
        }

        result=GF2.group(record);
        if (result.length()>0){
            return result;
        }

        result=GG1.group(record);
        if (result.length()>0){
            return result;
        }

        result=GJ1.group(record);
        if (result.length()>0){
            return result;
        }

        result=GK1.group(record);
        if (result.length()>0){
            return result;
        }

        result=GK2.group(record);
        if (result.length()>0){
            return result;
        }

        result=GK3.group(record);
        if (result.length()>0){
            return result;
        }

        if (false && record.ssList!=null && record.ssList.length>0  && Base.intersect(Base.SS_VALID,record.ssList)){
            Base.groupMessages.putMessage(record.Index,"符合GQY入组条件，存在有效手术操作："+String.join(",",Base.Intersect(record.ssList,Base.SS_VALID)));
            return "GQY";
        }

        result=GR1.group(record);
        if (result.length()>0){
            return result;
        }

        result=GS1.group(record);
        if (result.length()>0){
            return result;
        }

        result=GT1.group(record);
        if (result.length()>0){
            return result;
        }

        result=GU1.group(record);
        if (result.length()>0){
            return result;
        }

        result=GU2.group(record);
        if (result.length()>0){
            return result;
        }

        result=GV1.group(record);
        if (result.length()>0){
            return result;
        }

        result=GW1.group(record);
        if (result.length()>0){
            return result;
        }

        result=GZ1.group(record);
        if (result.length()>0){
            return result;
        }

        Base.groupMessages.putMessage(record.Index,"不符合MDCG的ADRG入组条件");
        return "";
    }
}

